package edu.cuit.jead.mynetdisk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Date;

@Data
@TableName("user")
public class User implements Serializable {
    @TableId(type= IdType.AUTO)
    private Long id;//用户ID
    private String username;//用户名
    private String password;//加密密码
    private String email;//邮箱
    private String token;
    @JsonIgnore
    @TableField("avatar")
    private String avatar;//头像URL
    private Integer status;//账号状态(1-正常,0-禁用)
    @TableField("usedspace")
    private Long usedspace;//已使用空间
    @TableField("totalspace")
    private Long totalspace;//总存储空间(默认10GB)
    private Date createtime;//创建时间
    private Date updatetime;//更新时间
}